﻿@model IEnumerable<MVC_No02.Models.Task>

@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>Task</title>
    <style type="text/css">
        table td {
            width: 200px;
            text-align: center;
        }
    </style>
</head>
<body>
    <div>
        <table>
            <thead>
                <tr>
                    <td>TaskID</td>
                    <td>TaskPriority</td>
                    <td>Content</td>
                    <td>AddTime</td>
                    <td>TaskState</td>
                    <td>FinishedTime</td>
                    <td>uid</td>
                </tr>
            </thead>
            <thead>
                @foreach (var item in Model)
                {
                    <tr>
                        <td>@item.TaskID</td>
                        <td>@item.TaskPriority</td>
                        <td>@item.Content</td>
                        <td>@item.AddTime</td>
                        <td>@item.TaskState</td>
                        <td>@item.FinishedTime</td>
                        <td>@item.uid</td>
                    </tr>
                }
            </thead>
        </table>
    </div>
</body>
</html>
